<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2018/12/7
 * Time: 9:22
 */

namespace api\storage\model;


use think\Model;

class SupplierModel extends Model
{
    protected $table = 'iwh_supplier';
    protected $uuid = 'uuid';

    /**
     * 获取供应商的信息
     * @param string $uuid
     * @return array|false|\PDOStatement|string|Model
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function findByUuid($uuid = ''){
        if(!empty($uuid)){
            return $this->where('uuid',$uuid)->find();
        }
    }

}